package yxy.cherry.chat.client;

import yxy.apple.protobuf.Message.Parcal;
import yxy.banana.server.internal.InternalClientBundler;
import yxy.banana.server.internal.InternalClientController;
import yxy.cherry.chat.Configuration;
import yxy.cherry.chat.Reactor;

public class ClientController extends InternalClientController<ClientHandler> {

	@Override
	protected int getHeartbeatInterval() {
		return Configuration.shared().InternalClient.HeartbeatInterval;
	}

	@Override
	protected int getHeartbeatResponseTimeout() {
		return Configuration.shared().InternalClient.HeartbeatResponseTimeout;
	}

	@Override
	protected int getRegistryResponseTimeout() {
		return Configuration.shared().InternalClient.RegistryResponseTimeout;
	}

	@Override
	protected InternalClientBundler<ClientHandler> bundler() {
		return Reactor.instance.bundler();
	}

	@Override
	protected boolean control(Parcal parcal) throws Exception {
		// 不应该有任何消息到这里
		return false;
	}
}
